<html>
	<head>
		<meta charset="UTF-8"/>
	 <title>基础代码</title>
	</head>
	<body>
	<script src='functionDemo.js' type="text/javascript" charset='utf-8' ></script>
	<script src='Set.js' type="text/javascript" charset='utf-8' ></script>
	<script src='Reg.js' type="text/javascript" charset='utf-8' ></script>
	<canvas width="794" height="1123" style="border:1px solid #000000;">
		您的浏览器不支持 HTML5 canvas 标签。
	</canvas>
	<script charset="UTF-8">
		let canvas = document.querySelector("canvas");
		let context = canvas.getContext('2d');
		const width = canvas.attributes.width.value
		const height = canvas.attributes.height.value
		context.moveTo(0, 0);
		context.lineTo(width, height);
		context.stroke();
	</script>
	</body>
</html>